#include<iostream>
#include<string>
using namespace std;
int main(){
    char c;
    c = getchar();
    for (int i = 1; i <= 3; i++) {  
        for (int j = 1; j <= 3 - i; j++)
            printf(" ");
        for (int k = 1; k <= 2 * i - 1; k++)
            printf("%c", c);
        printf("\n");
    }
    return 0;
}